
const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    @property(cc.Label)
    label: cc.Label = null;

    @property
    text: string = 'hello';

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {}

    start () {

    }

    // update (dt) {}

    onToggleClick(event:cc.Toggle,message:string){
        cc.log(event.isChecked);
        cc.log(message);
    }

    onbuttonClick(event:cc.Button,message:string){
        cc.log(event);
        cc.log(message);
    }

    onRidioButton(event:cc.ToggleContainer,message:string){
        cc.log(event)
    }
}
